<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>SetVehicleAttribute</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">SetVehicleAttribute()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#006666"><b>SetVehicleAttribute</b></font>(#Entity, Attribute, Value.f [, Wheel])</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Set the specified attribute value to the given vehicle entity. 
For more info about attributes possible value, . 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Entity</i></td>
<td width="90%"> 
 
The vehicle entity to use. 

 

</td></tr>
<tr><td><i>Attribute</i></td>
<td> 
要设置的属性。The following attributes are available: 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_Vehicle_Friction</font>: set the wheel friction value (see <a href="createvehiclebody.html">CreateVehicleBody()</a> for more info).
  <font color="#924B72">#PB_Vehicle_MaxSuspensionForce</font>: set the wheel maximum suspension force value (see <a href="createvehiclebody.html">CreateVehicleBody()</a> for more info).
  <font color="#924B72">#PB_Vehicle_SuspensionStiffness</font>: set the stiffness value for the suspension (see <a href="createvehiclebody.html">CreateVehicleBody()</a> for more info).
  <font color="#924B72">#PB_Vehicle_MaxSuspensionCompression</font>: set the wheel maximum suspension compression value (see <a href="createvehiclebody.html">CreateVehicleBody()</a> for more info).
  <font color="#924B72">#PB_Vehicle_MaxSuspensionLength</font>: set the maximum length of the suspension (meters).
  <font color="#924B72">#PB_Vehicle_WheelDampingCompression</font>: set the wheel damping compression value.
  <font color="#924B72">#PB_Vehicle_WheelDampingRelaxation</font>: set the wheel damping relaxation value.
  <font color="#924B72">#PB_Vehicle_RollInfluence</font>: set the wheel roll influence value (see <a href="addvehiclewheel.html">AddVehicleWheel()</a> for more info).
</font></pre>

</td></tr>
<tr><td><i>Value</i></td>
<td> 
 
Value of the attribute to set. 

 

</td></tr>
<tr><td><i>Wheel (optional)</i></td>
<td> 
 
The wheel index, starting from 0. If not specified, or sets to <font color="#924B72">#PB_All</font>, the new attribute value is applied to all wheels. 

 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>
无.


</blockquote><p><b>参阅</b></p><blockquote>

<a href="getvehicleattribute.html">GetVehicleAttribute()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=getvehicleattribute.html>GetVehicleAttribute()</a> - <a href=index.html>Vehicle Index</a><br><br>
</body></html>